## 参考：https://v2raya.org/docs/prologue/installation/debian/


# 前提： 安装nft防火墙

# 安装公钥
wget -qO - https://apt.v2raya.org/key/public-key.asc | sudo tee /etc/apt/keyrings/v2raya.asc

# 添加软件源
echo "deb [signed-by=/etc/apt/keyrings/v2raya.asc] https://apt.v2raya.org/ v2raya main" | sudo tee /etc/apt/sources.list.d/v2raya.list
sudo apt update

# 安装
sudo apt install v2raya v2ray ## 也可以使用 xray 包


# 启动&开机启动
sudo systemctl start v2raya.service
sudo systemctl enable v2raya.service

# 访问2017端口，打开web页面
localhost:2017